<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%-- 
    Document   : login
    Created on : 18-mar-2010, 23:42:18
    Author     : Jose Fernando
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<f:view>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
    <h:form id="loginForm">
        <table>
            <tr> <td> Usuario </td> <td> <h:inputText value="#{loginBean.usuario}"/> </td> </tr>
            <tr> <td> Password </td> <td> <h:inputText value="#{loginBean.password}"/> </td> </tr>
        </table>
            <h:commandButton disabled="#{loginBean.logged==true}" value="Log In" action="#{loginBean.login}"/>
            <h:commandButton disabled="#{loginBean.logged==false}" value="Log Out" action="#{loginBean.logout}"/>
            <h:commandLink disabled="#{loginBean.logged==true}" value="Alta Cliente" action="altaCliente"/>
            &nbsp;
            <h:commandLink value="Cambio Password" action="#{loginBean.cambiaPassword}"/>
            &nbsp;
            <h:outputText value="#{loginBean.logged}"/>
            <br>
            <h:commandLink value="Listado Categorias" action="listadoCategorias"/>
    </h:form>
    </body>
</html>
</f:view>

